'use strict';

angular.module('sakuraApp')
    .controller('TradePaymentDetailController', function ($scope, $stateParams, TradePayment, User, Trade) {
        $scope.tradePayment = {};
        $scope.load = function (id) {
            TradePayment.get({id: id}, function(result) {
              $scope.tradePayment = result;
            });
        };
        $scope.load($stateParams.id);
    });
